package com.usian.apis.admin;

/**
 * ClassName: AdChannelControllerApi
 * Author:   WGG
 * Date:    2022-11-2022/11/9-16:21
 * Version: 1.0
 * Description:
 */

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 对外提供的服务暴露接口
 */
@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface AdChannelControllerApi {

    /**
     * 根据名称分页查询
     * @param channelDto
     * @return ResponseResult
     */
    @ApiOperation(value = "频道分页查询")
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    /**
     * 新增频道
     * @param adChannel
     * @return
     */
    public ResponseResult save(AdChannel adChannel);

    /**
     * 修改频道
     * @param adChannel
     * @return
     */
    public ResponseResult update(AdChannel adChannel);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public ResponseResult deleteById(Integer id);

    /**
     * 全查
     * @return
     */
    ResponseResult channels();


}
